﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TypeAdd.aspx.cs" Inherits="HPIT_Library.TypeAdd" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <link rel="stylesheet" />
    <link rel="stylesheet" href="css/Site.css" />
    <link rel="stylesheet" href="css/zy.all.css" />
    <link rel="stylesheet" href="css/font-awesome.min.css" />
    <link rel="stylesheet" href="css/amazeui.min.css" />
    <link rel="stylesheet" href="css/admin.css" />
    <script src="js/jquery-1.7.2.min.js"></script>
    <script>
        $(function () {
            $("#btn_AjaxAddType").click(function () {
                var Type = $("#TextBox1").val();
                $.post("/LoginAjax.ashx", { Acount: "add", CategoryName: Type }, function (date) {
                    if (date.State = 1) {
                        location.href = "type.aspx";
                        alert(date.Message);
                    } else {
                        alert(date.Message);
                    }

                }, "json")

            })
        });
    </script>
    <title></title>
</head>
<body>
    <form id="form1" runat="server" style="text-align:center">
     
        <div class="dvcontent">

            <div>
                <!--tab start-->
                <div class="tabs">
                    <div class="hd">
                        <ul style="">
                            <li style="box-sizing: initial; -webkit-box-sizing: initial;" class="on">查看分类</li>
                            <li class="" style="box-sizing: initial; -webkit-box-sizing: initial;"><a href="TypeAdd.aspx">添加分类</a></li>
                        </ul>
                    </div>
                    <div class="bd">
                        <ul style="display: block; padding: 20px;">
                            <li>
                                <!--分页显示角色信息 start-->
                                <div id="dv1" style="text-align: center">
                                       <h1>添加分类</h1>
                                   分类名称:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <input type="button" id="btn_AjaxAddType" value="Ajax添加"/>
            <asp:Button ID="user_name" runat="server" Text="添加" OnClick="Button1_Click" />
            <asp:Button ID="Button1" runat="server" Text="返回" PostBackUrl="~/type.aspx"/>
            <br />
            <asp:Label ID="Label1" runat="server" Text=""></asp:Label>

                                </div>
                                <!--分页显示角色信息 end-->
                            </li>
                        </ul>
                        <ul class="theme-popbod dform" style="display: none;">
                            <div class="am-cf admin-main" style="padding-top: 0px;">
                                <!-- content start -->

                                <div class="am-cf admin-main" style="padding-top: 0px;">
                                </div>
                                <!-- end-->
                        </ul>
                    </div>
                </div>
                <!--tab end-->
            </div>
        </div>
    </form>
</body>
</html>
